/*
 * Hub.java
 *
 * Created on June 16, 2007, 3:22 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package jhub;


import jhub.management.UserManager;

/**
 *
 * @author dbotelho
 */
public class Hub {
    
    private int id;
    private String hubAddress;
    private int port;
    private String hubTopic;
    private String hubName;
    private String MTOD;
    private int defaultKickTime;
    
    private final UserManager userManager;
    private Settings hubProperties;
    
    public Hub() {
        userManager = new UserManager(this);
    }
    
    /*public Hub(Settings hubProperties) {
        userManager = new UserManager();
        this.setHubName(hubProperties.getProperty(Settings.HUB_NAME));
        this.setPort(new Integer(hubProperties.getProperty(Settings.HUB_PORT)).intValue());
        
        this.setHubProperties(hubProperties);
        
    }*/

    public String getHubName() {
        return hubName;
    }

    public void setHubName(String hubName) {
        this.hubName = hubName;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public Settings getHubProperties() {
        return hubProperties;
    }

    public void setHubProperties(Settings hubProperties) {
        this.hubProperties = hubProperties;
    }

    public String toString() {
        return "hubName:"+getHubName()+" port:"+getPort();
    }


    public UserManager getUserManager() {
        return userManager;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getHubAddress() {
        return hubAddress;
    }

    public void setHubAddress(String hubAddress) {
        this.hubAddress = hubAddress;
    }

    public String getHubTopic() {
        return hubTopic;
    }

    public void setHubTopic(String hubTopic) {
        this.hubTopic = hubTopic;
    }

    public String getMTOD() {
        return MTOD;
    }

    public void setMTOD(String MTOD) {
        this.MTOD = MTOD;
    }

    public int getDefaultKickTime() {
        return defaultKickTime;
    }

    public void setDefaultKickTime(int defaultKickTime) {
        this.defaultKickTime = defaultKickTime;
    }
    

 
    
}
